package com.ssy.lingxi.member.merchant.model.vo.platform.request;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;
import java.util.List;

/**
 * 平台后台 - 会员角色权限 - 修改角色权限
 * @author 万宁
 * @version 2.0.0
 * @date 2022-04-15
 */
public class PlatformRoleAuthVO implements Serializable {
    private static final long serialVersionUID = -6103503476233220357L;

    /**
     * 角色Id
     */
    @NotNull(message = "角色Id要大于0")
    @Positive(message = "角色Id要大于0")
    private Long roleId;

    /**
     * 菜单列表，无修改则不传
     */
    @Valid
    private List<PlatformRoleAuthUpdateVO> menus;

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public List<PlatformRoleAuthUpdateVO> getMenus() {
        return menus;
    }

    public void setMenus(List<PlatformRoleAuthUpdateVO> menus) {
        this.menus = menus;
    }
}
